package com.group11.base.config;

import cn.hutool.cache.CacheUtil;
import cn.hutool.cache.impl.TimedCache;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 老谭（<a href="http://www.woniuxy.com">蜗牛学苑</a>）
 */
@Configuration
public class CacheConfig {
    @Bean
    public TimedCache<String, String> timedCache() {
        return CacheUtil.newTimedCache(1000 * 60);
    }
}